<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>消息</title>
</head>
<body>
    Msg:${msg}<br>
    Session:${sessionScope.values()}
    <br>
    <script type="text/javascript">
        $("#a").click(function(){alert("haha");
            var url=$(this).attr("href");
            url = encodeURI(encodeURI(url));
            $(this).attr("href",url);
            alert(url + "?");
        });
    </script>
    <script type="text/javascript">
        function transfer(name) {
            var url = "open?name=" + encodeURI(encodeURI(name));
            location.href = url;
        }
    </script>
    <c:forEach items="${files}" var="item" >
        <a href="javascript:void(0)" charset="UTF-8" onclick="transfer('${item}')"> ${item} </a>
        <br>
    </c:forEach>
</body>
</html>
